from random import *
k=int(input("кол-во выстрелов: "))
count=0
for i in range (k):
    x=randint(-100,100)
    y=randint(-100,100)
    print(x, y)
    if x>=-7 and x<=5 and y>=-8 and y<=5:
        count=count + 1
print(count)
